#ifndef SPRITESHEETPICTURE_2018
#define SPRITESHEETPICTURE_2018

#include "picture.h"
#include <vector>
#include "../texture/texture2d.h"


class SpriteSheetPicture : public PictureCommon
{
public:
    SpriteSheetPicture();
    virtual ~SpriteSheetPicture() override;

private:
    std::vector<TextureArea*>m_data;
    GLuint m_sheetTexture;

public:
    bool loadTexture(const char* fileName);
    bool parseJson(const char* jsonFileName);
    unsigned int getNumberOfSheet()const ;
    const TextureArea* getTextureArea(unsigned int index)const;
    GLuint getTexture()const;
};

#endif // SPRITESHEETPICTURE_2018
